package tests;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class TestControleur implements ActionListener{
    Requete requete;
    ApplicationTest appli;
    
    TestControleur(Requete requete, ApplicationTest appli) {
    	this.requete = requete;
    	this.appli = appli;
    }
    
    public void actionPerformed(ActionEvent e) {
    	if (e.getSource() == appli.getBouton()) requete.executer();
    }

}
